/**
 * Created by jian.a.guan on 14-2-8.
 */
$(document).ready(function(){
$("#login8_img").hover(
    function(){$(this).attr("src","images/login/login_mouseOver.png");},
    function(){$(this).attr("src","images/login/login.png");}
);
$("form").submit(function(){
    var username = $("input[name='username']").val();
    var psw = $("input[name='psw']").val();
    if( username == ""){
        $("p:eq(5)").html("请输入登录用户名！");
        $("#login11").attr("style","display: block");
    }
    if( psw == ""){
        $("p:eq(6)").html("请输入登录密码！");
        $("#login12").attr("style","display: block");
    }
    if (username == "" || psw == "")
    return false;
});
$("input[type=text]").focus(function(){
   $("#login11").attr("style","display: none");
    });
$("input[type=password]").focus(function(){
   $("#login12").attr("style","display: none");
   });
});